package com.example.blog.dto.writing;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;

@Data
public class SupperDto {
    @NotBlank(message = "不能为空")
    @Min(value = 0,message = "值过小")
    @Max(value = 1,message = "值过大")
    private Integer type;
    @NotBlank(message = "不能为空")
    private String wid; //文章编号
    @NotBlank(message = "不能为空")
    @Min(value = 1,message = "值过小")
    private long uid; //作者编号
}
